package io.renren.modules.sys.back.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.sys.back.dao.BtCtBaseDao;
import io.renren.modules.sys.back.entity.BtCtBaseEntity;
import io.renren.modules.sys.back.service.BtCtBaseService;


@Service("btCtBaseService")
public class BtCtBaseServiceImpl extends ServiceImpl<BtCtBaseDao, BtCtBaseEntity> implements BtCtBaseService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BtCtBaseEntity> page = this.selectPage(
                new Query<BtCtBaseEntity>(params).getPage(),
                new EntityWrapper<BtCtBaseEntity>()
        );

        return new PageUtils(page);
    }
    @Override
    public Long insertOneBackprimkey(BtCtBaseEntity entity){
        return baseMapper.insertOneBackprimkey(entity);
    }
}
